package com.example.score.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import com.example.score.common.BaseController;
import com.example.score.common.Result;
import com.example.score.entity.TQuestionImg;
import com.example.score.service.ITQuestionImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 【考试试题图片】Controller
 * 
 * @author andy
 * @date 2025-06-16
 */
@RestController
@RequestMapping("api/question/img")
public class TQuestionImgController extends BaseController
{
    @Autowired
    private ITQuestionImgService tQuestionImgService;

    /**
     * 查询【请填写功能名称】列表
     */
    @GetMapping("/list")
    public Result<?> list(@RequestParam("uuids") List<String> uuids)
    {
        List<TQuestionImg> list = tQuestionImgService.selectListByUuids(uuids);
        return Result.success(list);
    }

    /**
     * 新增
     */
    @PostMapping("/edit")
    public Result<?> edit(@RequestBody List<TQuestionImg> tQuestionImgs){
        tQuestionImgService.edit(tQuestionImgs);
        return Result.success("");
    }

}
